#!/usr/bin/env python

import socket, time, sys

if __name__ == "__main__":
	s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
	s.connect(("192.168.122.35",8888))
	if s:
		s.send("hello,server")
	else:
		sys.exit(1)

	while True:
		time.sleep(1)
		str = time.strftime("%H:%M:%S",time.gmtime())
		s.send(str)

